<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-yaopin-edit" th:object="${yaopin}">
            <input id="yaoId" name="yaoId" th:field="*{yaoId}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">药品名称：</label>
                <div class="col-sm-8">
                    <input id="yaoname" name="yaoname" th:field="*{yaoname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">药品规格：</label>
                <div class="col-sm-8">
                    <input id="yaoguige" name="yaoguige" th:field="*{yaoguige}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">药品类型id：</label>
                <div class="col-sm-8">
                    <input id="yaotypeId" name="yaotypeId" th:field="*{yaotypeId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">药品类型：</label>
                <div class="col-sm-8">
                    <input id="yaotype" name="yaotype" th:field="*{yaotype}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">剂型id：</label>
                <div class="col-sm-8">
                    <input id="yaojixingId" name="yaojixingId" th:field="*{yaojixingId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">剂型：</label>
                <div class="col-sm-8">
                    <input id="yaojixing" name="yaojixing" th:field="*{yaojixing}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">单位id：</label>
                <div class="col-sm-8">
                    <input id="yaodanweiId" name="yaodanweiId" th:field="*{yaodanweiId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">单位：</label>
                <div class="col-sm-8">
                    <input id="yaodanwei" name="yaodanwei" th:field="*{yaodanwei}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">加入时间：</label>
                <div class="col-sm-8">
                    <input id="yaostartDate" name="yaostartDate" th:field="*{yaostartDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">退出时间：</label>
                <div class="col-sm-8">
                    <input id="yaostopDate" name="yaostopDate" th:field="*{yaostopDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input id="kufangId" name="kufangId" th:field="*{kufangId}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/yaopin"
		$("#form-yaopin-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-yaopin-edit').serialize());
			}
		});
	</script>
</body>
</html>
